package com.powernode.feign;

import com.powernode.domain.Sku;
import com.powernode.feign.hystrix.CartSkuFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 内容:
 * 作者: cy
 */
@FeignClient(value = "product-service", fallback = CartSkuFeignHystrix.class)
public interface CartSkuFeign {

    @GetMapping("prod/prod/getSkuListByIds")
    List<Sku> getSkuListByIds(@RequestParam List<Long> skuIds);


}
